{"version":3,"sources":["field-selector.js"],"names":["BX","namespace","UI","EntityEditorFieldSelector","this","_id","_settings","_scheme","_excludedNames","_contentWrapper","_popup","fieldVisibleClass","fieldHiddenClass","prototype","initialize","id","settings","prop","get","getArray","getMessage","name","getString","messages","isSchemeElementEnabled","schemeElement","getName","i","length","addClosingListener","listener","Event","EventEmitter","subscribe","removeClosingListener","unsubscribe","isOpened","isShown","open","PopupWindow","autoHide","draggable","bindOptions","forceBindPosition","closeByEsc","closeIcon","zIndex","titleBar","content","prepareContent","lightShadow","contentNoPaddings","buttons","PopupWindowButton","text","message","className","events","click","delegate","onAcceptButtonClick","PopupWindowButtonLink","onCancelButtonClick","onPopupClose","bind","show","close","create","props","useFieldsSearch","headerWrapper","attrs","children","prepend","prepareContentHeaderSections","prepareContentHeaderSearch","container","columns","getElements","columnCount","column","sections","k","sectionCount","section","effectiveElements","elementChildren","childElement","j","isTransferable","push","parentName","parentTitle","getTitle","appendChild","sectionContainer","childElementName","childElementTitle","itemId","itemWrapper","type","for","headerSectionsWrapper","firstElementChild","buttonTitle","itemClass","headerSectionItem","html","input","onFilterSectionSearchInput","searchForm","onFilterSectionSearchInputClear","search","target","value","toLowerCase","getFieldsPopupItems","map","item","title","innerText","indexOf","removeClass","addClass","style","display","isArray","fieldsPopupItems","Array","from","querySelectorAll","prepareAnimation","onAnimationEnd","hasClass","getSelectedItems","results","checkBoxes","checkBox","checked","parts","split","sectionName","fieldName","emit","sender","isCanceled","items","destroy","onPopupDestroy","self","EntityEditorUserSelector","_isInitialized","_onlyUsers","getBoolean","getId","anchor","_mainWindow","SocNetLogDestination","containerWindow","init","extranetUser","userSearchArea","bindMainPopup","node","offsetTop","offsetLeft","callback","select","onSelect","unSelect","showSearchInput","departmentSelectDisable","users","groups","sonetgroups","socnetGroups","department","departmentRelation","buildDepartmentRelation","itemsLast","last","itemsSelected","getObject","isCrmFeed","useClientDatabase","destSort","allowAddUser","allowSearchCrmEmailUsers","allowUserSearch","openDialog","bindNode","closeD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